Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class Either<out T, E : Throwable>
Link copied to clipboard
class IOScope(overrideWithContext: CoroutineContext = Dispatchers.IO) : CoroutineScope, SuperwallScope
Link copied to clipboard
class MainScope(overrideWithContext: CoroutineContext = Dispatchers.Main) : CoroutineScope, SuperwallScope
Link copied to clipboard
class SerialTaskManager(coroutineScope: CoroutineScope = CoroutineScope(Dispatchers.IO.limitedParallelism(1)))
Link copied to clipboard
class VersionHelper(val context: Context)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline suspend fun <T> asEither(block: suspend () -> T): Either<T, Throwable>
Link copied to clipboard
Link copied to clipboard
suspend fun <T, E : Throwable> eitherWithTimeout(duration: Duration, error: () -> E, run: suspend () -> Either<T, E>): Either<T, E>
Link copied to clipboard
fun <T, Out, E : Throwable> Either<T, E>.flatMap(transform: (T) -> Either<Out, E>): Either<Out, E>
Link copied to clipboard
inline suspend fun <T, E : Throwable> Either<T, E>.fold(crossinline onSuccess: suspend (T) -> Unit, crossinline onFailure: suspend (E) -> Unit)
Link copied to clipboard
inline suspend fun <T, E : Throwable> Either<T, E>.into(crossinline map: suspend (Either<T, E>) -> Either<T, E>): Either<T, E>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <In, Out, E : Throwable> Either<In, E>.map(transform: (In) -> Out): Either<Out, E>
Link copied to clipboard
suspend fun <In, Out, E : Throwable> Either<In, E>.mapAsync(transform: suspend (In) -> Out): Either<Out, E>
Link copied to clipboard
fun <T, E : Throwable, F : Throwable> Either<T, E>.mapError(transform: (E) -> F): Either<T, *>
Link copied to clipboard
fun <T, E : Throwable> Either<T, E>.onError(onError: (E) -> Unit): Either<T, E>
Link copied to clipboard
suspend fun <T, E : Throwable> Either<T, E>.onErrorAsync(onError: suspend (E) -> Unit): Either<T, E>
Link copied to clipboard
Link copied to clipboard
suspend fun <T> retrying(maxRetryCount: Int, isRetryingCallback: suspend () -> Unit?, operation: suspend () -> Either<T, NetworkError>): Either<T, NetworkError>
Link copied to clipboard
fun runOnUiThread(action: () -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun <In, E : Throwable> Either<In, E>.then(then: suspend (In) -> Unit): Either<In, E>
Link copied to clipboard
inline fun <T, E : Throwable> Either<T, E>.toResult(): Result<T>
Link copied to clipboard
fun <T> Either<T, out Throwable>.unwrap(): T